package com.binlog.core.handler;

import com.binlog.module.BinLogItem;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.util.Strings;

/**
 * Common event listener handler adapter
 *
 * @description: CommonEventListenerHandler 适配类
 * @author: cyj
 * @date 2022 -05-13 16:45:58
 *
 *
 */
@Slf4j
public abstract class CommonEventListenerHandlerAdapter implements CommonEventListenerHandler {

    @Override
    public void insertHandle(BinLogItem binLogItem) {
        throw new RuntimeException("not support this action!");
    }

    @Override
    public void updateHandle(BinLogItem binLogItem) {
        throw new RuntimeException("not support this action!");
    }

    @Override
    public void deleteHandle(BinLogItem binLogItem) {
        throw new RuntimeException("not support this action!");
    }

    @Override
    public String getTableName() {
        return Strings.EMPTY;
    }

    @Override
    public String getDatesource() {
        return Strings.EMPTY;
    }
}
